In commutative algebra the Hilbert–Samuel function, named after David Hilbert and Pierre Samuel,[1] of a nonzero finitely generated module over a commutative Noetherian local ring and a primary ideal of is the map such that, for all ,
where denotes the length over . It is related to the Hilbert function of the associated graded module by the identity
For sufficiently large , it coincides with a polynomial function of degree equal to .[2]
For the ring of formal power series in two variables taken as a module over itself and graded by the order and the ideal generated by the monomials x2 and y3 we have